]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Avoid double slash when creating default folders
authorAdam Williamson <awilliam@redhat.com>
Tue, 15 Mar 2022 20:25:16 +0000 (13:25 -0700)
committerMarge Bot <marge-bot@gnome.org>
Sun, 20 Mar 2022 21:50:25 +0000 (21:50 +0000)
commitc5f6482705797f33f6411e4ee57755fa170eadeb
tree8122355462fdb09065af283be86723b20c1c030e
parent95f4a1ecd6bdabf6d6ee68c42dec389799c6bdb2
appDisplay: Avoid double slash when creating default folders

Creating these default folders still doesn't work. After some
investigation I found that's because the template we use for
the path when creating the `child` `Gio.Settings` instance
results in a double slash - it comes out as e.g.
/org/gnome/desktop/app-folders//folders/Utilities/ . dconf does
not gracefully handle this as many other things that handle
paths do, it considers it a programmer error. It results in
error messages like:

dconf_changeset_set: assertion 'dconf_is_path (path, NULL)' failed

which is slightly confusing. Anyway, we fix it by removing a
slash from the template.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2242>
js/ui/appDisplay.js